#pragma once
//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#define CRYPT_BLOCK_LEN	16 //for now all encryption must be on even 16 byte boundries and be multiples of 16 Bytes
#pragma pack(push) 
#pragma pack(1)

class RcSysPktCryptWrapper
{
public:
	unsigned short	m_u16PktLen;		
	unsigned short	m_u16PktType; //PKT_TYPE_CRYPT_WRAPPER

	VxCrypto64Hdr	m_oCryptHdr;


	RcSysPktCryptWrapper( int iInitialLen );
	RCODE AddData( char * pData, int iLen );
	RCODE Encrypt( VxKey * poKey );
};
#pragma pack(pop)
